package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.user.dto.UserRelationDto;
import com.zhentao.service.UserRelationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/user")
public class UserRelationController {
    @Autowired
    private UserRelationService service;

    @PostMapping("user_follow")
    public ResponseResult userFollow(@RequestBody UserRelationDto dto){
        return service.userFollow(dto);
    }
}
